IF NOT EXISTS (SELECT 1 FROM sys.objects
					 WHERE type ='u' AND object_id = OBJECT_ID('MD3.Indexes'))
BEGIN
	
	CREATE TABLE MD3.Indexes
	   (Id              BIGINT IDENTITY(1,1) NOT NULL,
			IndexName			SYSNAME NOT NULL,   
			SchemaName			SYSNAME NOT NULL, 
			TableName			SYSNAME NOT NULL,
			KeyColumns			VARCHAR(MAX)NOT NULL,
			IncludedColumns		VARCHAR(MAX) NULL,
			IsClustered			BIT NOT NULL,
			IsUnique			BIT NOT NULL,
			FGorPartitionScheme	VARCHAR(MAX)NOT NULL,
			IdxFillFactor		INT NOT NULL,
			IsPadded			BIT NOT NULL,
			CompressionSetting	VARCHAR(256) NOT NULL,
			DropIndex			BIT NOT NULL

	);
	   
	ALTER TABLE MD3.Indexes ADD CONSTRAINT IndexesPK 
	PRIMARY KEY CLUSTERED (Id);
		
END 
--drop table MD3.Indexes
